<template>
  <div>
    {{id}}
  </div>
</template>

<script setup>
import {reactive, ref, onMounted} from "vue";
import { useRoute } from "vue-router";
// 定义变量内容
const route = useRoute();

const id = ref(0);
onMounted(()=>{
  id.value = parseInt(route.params.id)
})
</script>

<style scoped>
</style>
